home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 720.swf / scripts / DefineButton2_126 / BUTTONCONDACTION on(release).as
Text File  |  2006-01-17  |  1KB  |  33 lines

  1. on(release){
  2.    if(eval("_root:status") == "Deal")
  3.    {
  4.       if(eval("_root:points") - Number(_root.tbet) >= 0)
  5.       {
  6.          "_root:NewGame"();
  7.          _root.button = "HIT";
  8.          set("_root:points",eval("_root:points") - Number(_root.tbet));
  9.          set("_root:tcredits","");
  10.          set("_root:tcredits",eval("_root:points"));
  11.          _root.mcdeal.gotoAndStop(2);
  12.          _root.mcmore.gotoAndStop(2);
  13.          _root.mcless.gotoAndStop(2);
  14.          set("_root:okFirst",true);
  15.          _root.SendVariables.gotoAndStop("SendBet");
  16.       }
  17.       else
  18.       {
  19.          _root.err1._visible = true;
  20.       }
  21.    }
  22.    if((eval("_root:status") == "Player" || eval("_root:status") == "Player2") && eval("_root:okGo") == true)
  23.    {
  24.       set("_root:okCard",true);
  25.       set("_root:db",false);
  26.       _root.mcdeal.gotoAndStop(2);
  27.       _root.mcstand.gotoAndStop(2);
  28.       _root.mcdouble.gotoAndStop(2);
  29.       _root.mcsplit.gotoAndStop(2);
  30.       _root.mcins.gotoAndStop(2);
  31.    }
  32. }
  33.